<?php
$routerGroup = new \Phalcon\Mvc\Router\Group(['module' => 'frontend']);

$routerGroup -> addGet('/', ['controller'=>'Index','action'=>'index']) -> setName('FrontendIndex::index');

$routerGroup -> addGet('/captcha', ['controller'=>'Captcha','action'=>'index']) -> setName('FrontendCaptcha::index');

$routerGroup -> addGet('/sendCaptcha', ['controller'=>'Captcha','action'=>'sendCaptcha']) -> setName('FrontendCaptcha::sendCaptcha');

$routerGroup -> addPost('/login', ['controller'=>'Auth','action'=>'index']) -> setName('FrontendAuth::index');
$routerGroup -> addPost('/forgetPassword', ['controller'=>'Auth','action'=>'forgetPassword']) -> setName('FrontendAuth::forgetPassword');

$routerGroup -> addGet('/user', ['controller'=>'User','action'=>'index']) -> setName('FrontendUser::index');
$routerGroup -> addPut('/user/password', ['controller'=>'User','action'=>'password']) -> setName('FrontendUser::password');
$routerGroup -> addPut('/user/safePassword', ['controller'=>'User','action'=>'safePassword']) -> setName('FrontendUser::safePassword');

$routerGroup -> addGet('/user/wallet/log/:int', ['controller'=>'UserWalletLog','action'=>'pager','field'=>1]) -> setName('FrontendUserWalletLog::pager');

$routerGroup -> addGet('/user/info', ['controller'=>'UserInfo','action'=>'findFirstById']) -> setName('FrontendUserInfo::findFirstById');
$routerGroup -> addPost('/user/info', ['controller'=>'UserInfo','action'=>'create']) -> setName('FrontendUserInfo::create');

$routerGroup -> addGet('/user/bankInfo', ['controller'=>'UserBankInfo','action'=>'index']) -> setName('FrontendUserBankInfo::index');
$routerGroup -> addGet('/user/bankInfo/:int', ['controller'=>'UserBankInfo','action'=>'findFirstById','id'=>1]) -> setName('FrontendUserBankInfo::findFirstById');
$routerGroup -> addPost('/user/bankInfo', ['controller'=>'UserBankInfo','action'=>'create']) -> setName('FrontendUserBankInfo::create');
$routerGroup -> addPut('/user/bankInfo/:int', ['controller'=>'UserBankInfo','action'=>'update','id'=>1]) -> setName('FrontendUserBankInfo::update');

$routerGroup -> addGet('/user/address', ['controller'=>'UserAddress','action'=>'index']) -> setName('FrontendUserAddress::index');
$routerGroup -> addGet('/user/address/:int', ['controller'=>'UserAddress','action'=>'findFirstById','id'=>1]) -> setName('FrontendUserAddress::findFirstById');
$routerGroup -> addPost('/user/address', ['controller'=>'UserAddress','action'=>'create']) -> setName('FrontendUserAddress::create');
$routerGroup -> addPut('/user/address/:int', ['controller'=>'UserAddress','action'=>'update','id'=>1]) -> setName('FrontendUserAddress::update');
$routerGroup -> addDelete('/user/address/:int', ['controller'=>'UserAddress','action'=>'delete','id'=>1]) -> setName('FrontendUserAddress::delete');

$routerGroup -> addGet('/user/team', ['controller'=>'UserTeam','action'=>'pager']) -> setName('FrontendUserTeam::pager');
$routerGroup -> addGet('/user/team/children', ['controller'=>'UserTeam','action'=>'children']) -> setName('FrontendUserTeam::children');
$routerGroup -> addPost('/user/activation', ['controller'=>'UserTeam','action'=>'activation']) -> setName('FrontendUserTeam::activation');
$routerGroup -> addPost('/user/trade', ['controller'=>'UserTeam','action'=>'trade']) -> setName('FrontendUserTeam::trade');

$routerGroup -> addGet('/user/wallet/transfer/log/:int', ['controller'=>'UserTransfer','action'=>'log','field'=>1]) -> setName('FrontendUserTransfer::log');
$routerGroup -> addPost('/user/transfer', ['controller'=>'UserTransfer','action'=>'create']) -> setName('FrontendUserTransfer::create');

$routerGroup -> addGet('/user/message', ['controller'=>'UserMessage','action'=>'pager']) -> setName('FrontendUserMessage::pager');
$routerGroup -> addPost('/user/message', ['controller'=>'UserMessage','action'=>'create']) -> setName('FrontendUserMessage::create');

$routerGroup -> addGet('/user/wallet', ['controller'=>'UserWallet','action'=>'index']) -> setName('FrontendUser::index');

$routerGroup -> addGet('/user/order', ['controller'=>'UserOrder','action'=>'pager']) -> setName('FrontendUserOrder::pager');
$routerGroup -> addPost('/user/order', ['controller'=>'UserOrder','action'=>'create']) -> setName('FrontendUserOrder::create');
$routerGroup -> addPut('/user/order/status', ['controller'=>'UserOrder','action'=>'status']) -> setName('FrontendUserOrder::status');

$routerGroup -> addGet('/trade/buy', ['controller'=>'TradeBuy','action'=>'index']) -> setName('FrontendTradeBuy::index');
$routerGroup -> addGet('/trade/buy/checkOrder', ['controller'=>'TradeBuy','action'=>'checkOrder']) -> setName('FrontendTradeBuy::checkOrder');
$routerGroup -> addGet('/trade/buy/:int', ['controller'=>'TradeBuy','action'=>'findFirstById','id'=>1]) -> setName('FrontendTradeBuy::findFirstById');
$routerGroup -> addPost('/trade/buy/:int/status/:int', ['controller'=>'TradeBuy','action'=>'status','id'=>1,'status'=>2]) -> setName('FrontendTradeBuy::status');
$routerGroup -> addPost('/trade/buy', ['controller'=>'TradeBuy','action'=>'create']) -> setName('FrontendTradeBuy::create');
$routerGroup -> addPut('/trade/buy/:int/cancal', ['controller'=>'TradeBuy','action'=>'cancal','id'=>1]) -> setName('FrontendTradeBuy::cancal');

$routerGroup -> addGet('/trade/sell', ['controller'=>'TradeSell','action'=>'index']) -> setName('FrontendTradeSell::index');
$routerGroup -> addGet('/trade/sell/:int', ['controller'=>'TradeSell','action'=>'findFirstById','id'=>1]) -> setName('FrontendTradeSell::findFirstById');
$routerGroup -> addPost('/trade/sell/:int/status/:int', ['controller'=>'TradeSell','action'=>'status','id'=>1,'status'=>2]) -> setName('FrontendTradeSell::status');
$routerGroup -> addPost('/trade/sell', ['controller'=>'TradeSell','action'=>'create']) -> setName('FrontendTradeSell::create');
$routerGroup -> addPut('/trade/sell/:int/cancal', ['controller'=>'TradeSell','action'=>'cancal','id'=>1]) -> setName('FrontendTradeSell::cancal');

$routerGroup -> addGet('/trade/business/buy', ['controller'=>'TradeBusinessBuy','action'=>'index']) -> setName('FrontendTradeBusinessBuy::index');
$routerGroup -> addGet('/trade/business/buy/:int', ['controller'=>'TradeBusinessBuy','action'=>'findFirstById','id'=>1]) -> setName('FrontendTradeBusinessBuy::findFirstById');
$routerGroup -> addPost('/trade/business/buy/:int/status/:int', ['controller'=>'TradeBusinessBuy','action'=>'status','id'=>1,'status'=>2]) -> setName('FrontendTradeBusinessBuy::status');
$routerGroup -> addPost('/trade/business/buy', ['controller'=>'TradeBusinessBuy','action'=>'create']) -> setName('FrontendTradeBusinessBuy::create');

$routerGroup -> addGet('/trade/business/sell', ['controller'=>'TradeBusinessSell','action'=>'index']) -> setName('FrontendTradeBusinessSell::index');
$routerGroup -> addGet('/trade/business/sell/:int', ['controller'=>'TradeBusinessSell','action'=>'findFirstById','id'=>1]) -> setName('FrontendTradeBusinessSell::findFirstById');
$routerGroup -> addPost('/trade/business/sell/:int/status/:int', ['controller'=>'TradeBusinessSell','action'=>'status','id'=>1,'status'=>2]) -> setName('FrontendTradeBusinessSell::status');
$routerGroup -> addPost('/trade/business/sell', ['controller'=>'TradeBusinessSell','action'=>'create']) -> setName('FrontendTradeBusinessSell::create');
$routerGroup -> addPut('/trade/business/sell/:int/cancal', ['controller'=>'TradeBusinessSell','action'=>'cancal','id'=>1]) -> setName('FrontendTradeBusinessSell::cancal');

$routerGroup -> addGet('/notice', ['controller'=>'Notice','action'=>'index']) -> setName('BackstageNotice::index');
$routerGroup -> addGet('/notice/home', ['controller'=>'Notice','action'=>'home']) -> setName('BackstageNotice::home');

$routerGroup -> addGet('/swipe/home', ['controller'=>'Swipe','action'=>'home']) -> setName('BackstageSwipe::home');

$routerGroup -> addGet('/system/parameter/ACCOUNT_BACKSTAGE_BANK_INFO', ['controller'=>'SystemParameter','action'=>'findFirstByACCOUNT_BACKSTAGE_BANK_INFO']) -> setName('FrontendSystemParameter::findFirstByACCOUNT_BACKSTAGE_BANK_INFO');

return $routerGroup;